<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	public function _initAcl(){
		$front=Zend_Controller_Front::getInstance();
		$acl_ini=APPLICATION_PATH.'/configs/acl.ini';
		$acl= new Custom_MyAcl($acl_ini);
		$front->registerPlugin(new Plugins_Auth($acl));
	}



	protected function _initView() {
				$view = new Zend_View();
		//		$helperUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
		//		//... code de paramétrage de votre vue : titre, doctype ...
			$view->addHelperPath('ZendX/JQuery/View/Helper', 'ZendX_JQuery_View_Helper');
		//		//... paramètres optionnels pour les helpeurs jQuery ....
		//		$view->jQuery()->setLocalPath('/dunord/public/js/jquery-1.8.0.min.js')
		//		->setUILocalPath('/dunord/public/js/jquery-ui-1.8.23.custom.min.js')
		//		->addStyleSheet('/dunord/public/styles/smoothness/jquery-ui-1.8.23.custom.css');
				$view->jQuery()->enable();
				$view->jQuery()->uiEnable();
		//		$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
		//		$viewRenderer->setView($view);
				return $view;

//		$view = new Zend_View();
//		$view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
//		$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
//		$viewRenderer->setView($view);
//		Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
	}

}

